package com.zggk.iroad.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.ToMany;

import java.util.List;
import org.greenrobot.greendao.DaoException;
import com.zggk.iroad.greendao.DaoSession;
import com.zggk.iroad.greendao.CzfaInfoDao;
import com.zggk.iroad.greendao.HandleInfoDao;

@Entity(nameInDb = "t_sgwx")
public class HandleInfo {
    @Property(nameInDb = "id")//通过@Property()这个注解定义我外部数据库的字段名才能解决
    @Id(autoincrement = true)
    private Long id;//ID
    private String BHGUID;//病害ID
    private String DCR;//调查人
    private String YQWCSJ;//要求完成时间
    private String LXBM;//路线编码
    private String QDZH;//起点桩号
    private String CZFAMC;//处置方案名称
    private String SGMX;//施工明细(施工说明)
    private String TJQDZH;//统计起点桩号
    private String YGSL;//病害数量
    private String BH;//单位
    private String WZFX;//方向
    private String BHLX;//病害名称
    private String JLDW;//记录单位
    private String ZZXH;//
    private String BZ;//备注
    private String PIC;//备注
    private String SGQ;
    private String SGZ;
    private String SGH;//图片
    private String ISDB;//是否是本地
    private String CCONE;//维修尺寸1
    private String CCTWO;//维修尺寸2
    private String CCTHREE;//维修尺寸3
    
    @ToMany(referencedJoinProperty = "parentId")
    private List<CzfaInfo> CZFA;
    /** Used to resolve relations */
    @Generated(hash = 2040040024)
    private transient DaoSession daoSession;
    /** Used for active entity operations. */
    @Generated(hash = 857241917)
    private transient HandleInfoDao myDao;
    @Generated(hash = 645999739)
    public HandleInfo(Long id, String BHGUID, String DCR, String YQWCSJ, String LXBM, String QDZH,
            String CZFAMC, String SGMX, String TJQDZH, String YGSL, String BH, String WZFX, String BHLX,
            String JLDW, String ZZXH, String BZ, String PIC, String SGQ, String SGZ, String SGH,
            String ISDB, String CCONE, String CCTWO, String CCTHREE) {
        this.id = id;
        this.BHGUID = BHGUID;
        this.DCR = DCR;
        this.YQWCSJ = YQWCSJ;
        this.LXBM = LXBM;
        this.QDZH = QDZH;
        this.CZFAMC = CZFAMC;
        this.SGMX = SGMX;
        this.TJQDZH = TJQDZH;
        this.YGSL = YGSL;
        this.BH = BH;
        this.WZFX = WZFX;
        this.BHLX = BHLX;
        this.JLDW = JLDW;
        this.ZZXH = ZZXH;
        this.BZ = BZ;
        this.PIC = PIC;
        this.SGQ = SGQ;
        this.SGZ = SGZ;
        this.SGH = SGH;
        this.ISDB = ISDB;
        this.CCONE = CCONE;
        this.CCTWO = CCTWO;
        this.CCTHREE = CCTHREE;
    }
    @Generated(hash = 1461801891)
    public HandleInfo() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getBHGUID() {
        return this.BHGUID;
    }
    public void setBHGUID(String BHGUID) {
        this.BHGUID = BHGUID;
    }
    public String getDCR() {
        return this.DCR;
    }
    public void setDCR(String DCR) {
        this.DCR = DCR;
    }
    public String getYQWCSJ() {
        return this.YQWCSJ;
    }
    public void setYQWCSJ(String YQWCSJ) {
        this.YQWCSJ = YQWCSJ;
    }
    public String getLXBM() {
        return this.LXBM;
    }
    public void setLXBM(String LXBM) {
        this.LXBM = LXBM;
    }
    public String getQDZH() {
        return this.QDZH;
    }
    public void setQDZH(String QDZH) {
        this.QDZH = QDZH;
    }
    public String getCZFAMC() {
        return this.CZFAMC;
    }
    public void setCZFAMC(String CZFAMC) {
        this.CZFAMC = CZFAMC;
    }
    public String getSGMX() {
        return this.SGMX;
    }
    public void setSGMX(String SGMX) {
        this.SGMX = SGMX;
    }
    public String getTJQDZH() {
        return this.TJQDZH;
    }
    public void setTJQDZH(String TJQDZH) {
        this.TJQDZH = TJQDZH;
    }
    public String getYGSL() {
        return this.YGSL;
    }
    public void setYGSL(String YGSL) {
        this.YGSL = YGSL;
    }
    public String getBH() {
        return this.BH;
    }
    public void setBH(String BH) {
        this.BH = BH;
    }
    public String getWZFX() {
        return this.WZFX;
    }
    public void setWZFX(String WZFX) {
        this.WZFX = WZFX;
    }
    public String getBHLX() {
        return this.BHLX;
    }
    public void setBHLX(String BHLX) {
        this.BHLX = BHLX;
    }
    public String getJLDW() {
        return this.JLDW;
    }
    public void setJLDW(String JLDW) {
        this.JLDW = JLDW;
    }
    public String getZZXH() {
        return this.ZZXH;
    }
    public void setZZXH(String ZZXH) {
        this.ZZXH = ZZXH;
    }
    public String getBZ() {
        return this.BZ;
    }
    public void setBZ(String BZ) {
        this.BZ = BZ;
    }
    public String getPIC() {
        return this.PIC;
    }
    public void setPIC(String PIC) {
        this.PIC = PIC;
    }
    /**
     * To-many relationship, resolved on first access (and after reset).
     * Changes to to-many relations are not persisted, make changes to the target entity.
     */
    @Generated(hash = 90363942)
    public List<CzfaInfo> getCZFA() {
        if (CZFA == null) {
            final DaoSession daoSession = this.daoSession;
            if (daoSession == null) {
                throw new DaoException("Entity is detached from DAO context");
            }
            CzfaInfoDao targetDao = daoSession.getCzfaInfoDao();
            List<CzfaInfo> CZFANew = targetDao._queryHandleInfo_CZFA(id);
            synchronized (this) {
                if (CZFA == null) {
                    CZFA = CZFANew;
                }
            }
        }
        return CZFA;
    }
    /** Resets a to-many relationship, making the next get call to query for a fresh result. */
    @Generated(hash = 139706893)
    public synchronized void resetCZFA() {
        CZFA = null;
    }
    /**
     * Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}.
     * Entity must attached to an entity context.
     */
    @Generated(hash = 128553479)
    public void delete() {
        if (myDao == null) {
            throw new DaoException("Entity is detached from DAO context");
        }
        myDao.delete(this);
    }
    /**
     * Convenient call for {@link org.greenrobot.greendao.AbstractDao#refresh(Object)}.
     * Entity must attached to an entity context.
     */
    @Generated(hash = 1942392019)
    public void refresh() {
        if (myDao == null) {
            throw new DaoException("Entity is detached from DAO context");
        }
        myDao.refresh(this);
    }
    /**
     * Convenient call for {@link org.greenrobot.greendao.AbstractDao#update(Object)}.
     * Entity must attached to an entity context.
     */
    @Generated(hash = 713229351)
    public void update() {
        if (myDao == null) {
            throw new DaoException("Entity is detached from DAO context");
        }
        myDao.update(this);
    }
    /** called by internal mechanisms, do not call yourself. */
    @Generated(hash = 1409901683)
    public void __setDaoSession(DaoSession daoSession) {
        this.daoSession = daoSession;
        myDao = daoSession != null ? daoSession.getHandleInfoDao() : null;
    }
    public String getISDB() {
        return this.ISDB;
    }
    public void setISDB(String ISDB) {
        this.ISDB = ISDB;
    }
    public String getCCONE() {
        return this.CCONE;
    }
    public void setCCONE(String CCONE) {
        this.CCONE = CCONE;
    }
    public String getCCTWO() {
        return this.CCTWO;
    }
    public void setCCTWO(String CCTWO) {
        this.CCTWO = CCTWO;
    }
    public String getCCTHREE() {
        return this.CCTHREE;
    }
    public void setCCTHREE(String CCTHREE) {
        this.CCTHREE = CCTHREE;
    }
    public String getSGQ() {
        return this.SGQ;
    }
    public void setSGQ(String SGQ) {
        this.SGQ = SGQ;
    }
    public String getSGH() {
        return this.SGH;
    }
    public void setSGH(String SGH) {
        this.SGH = SGH;
    }
    public String getSGZ() {
        return this.SGZ;
    }
    public void setSGZ(String SGZ) {
        this.SGZ = SGZ;
    }
}
